package com.jiyun.feign;

import com.jiyun.model.day14.Member;
import com.jiyun.model.day14.Team;
import com.jiyun.vo.day14.TeamVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Author yangYingJie
 * @Date 2023/8/22 11：03
 **/
@FeignClient("day14-member")
public interface Feign {
    @RequestMapping("/member/login")
    public Member login(@RequestBody Member member);

    @RequestMapping("/team/findAll3")
    public List<Team> findAll3();

    //报名传递过来一个数据往中间表存入数据
    @RequestMapping("/team/addTeamMember/{id}")
    public void addTeamMember(@PathVariable("id") String id);

    //查询当前登录人所在的战队
    @RequestMapping("/team/findById/{id}")
    public TeamVo findById(@PathVariable("id")Integer id);
}
